export default {
	// #ifdef MP
	token: state => state.app.token_wx,
	isLogin: state => !!state.app.token_wx,
	// #endif
	// #ifdef H5 || APP-PLUS
	token: state => state.app.token,
	isLogin: state => !!state.app.token,
	// #endif
	userInfo: state => state.app.userInfo || {},
	uid: state => state.app.uid,
	loginType: state => state.app.loginType,
	phoneNumber: state => state.app.phoneNumber,
	tokenStr: state => state.app.tokenStr,
	activityIsOpen: state => state.activity.open,
	activityIsNew: state => state.activity.isNew,
	activityNoQuery: state => state.activity.noQuery,
	activityHadShow: state => state.activity.hadShow,
	activityHadShowMoney: state => state.activity.hadShowMoney,
	activityChecked: state => state.activity.checked,
	activityIsBlack: state => state.activity.isBlack,
	activetyGuideShow: state => {
		const { showGuide, isNew, noQuery } = state.activity
		return (noQuery || isNew) && !showGuide
	}
};
